import React, { PureComponent } from 'react'

class Test extends PureComponent {
  render() {
    return <div>Test</div>
  }
}

function EnhanceCmp(Cmp) {
  return class NewComponent extends PureComponent {
    render() {
      return <Cmp {...this.props} />
    }
  }
}
export default EnhanceCmp(Test)
